let Api = {
    /*================= 用户登录注册 =================*/
    User: {
        dashBoard: {
            method: "GET",
            url: "/pod/v1/user/dash_board",
        },
        putEmailAgain: {
            method: "PUT",
            url: "/pod/v1/user/email/again",
        },
        putUserInfo: {
            method: "PUT",
            url: "/pod/v1/user/info",
        },
        putPsw: {
            method: "PUT",
            url: "/pod/v1/user/pass",
        },

        // 分销
        distribution: {
            method: "GET",
            url: "/pod/v1/user/distribution",
        },

        // 绑定分销码
        googleBindCode: {
            method: "PUT",
            url: "/pod/v1/user/google/bind",
        },

        // 绑定货币
        bindCurrency: {
            method: "PUT",
            url: "/pod/v1/user/rates/",
        },

        // 设置弹窗标识
        setPopupFlags: {
            method: "PUT",
            url: "/pod/v1/user/popup_flags/",
        },

        // 修改用户默认模特标签
        setUserModelTag: {
            method: "PUT",
            url: "/pod/v1/user/model_tag",
        },

        // 修改用户默认模特标签
        setSpuModelTag: {
            method: "PUT",
            url: "/pod/v1/user/model_tag/spu",
        },
    },
    // 获取验证码
    getChart: {
        method: "GET",
        url: "/pod/v1/getchart",
    },
    //刷新验证码
    getSource: {
        method: "GET",
        url: "/pod/v1/show/:source",
    },
    // 用户详情
    getUserInfo: {
        method: "GET",
        url: "/pod/v1/user/",
    },
    // 第三方登录
    getGoogleLogin: {
        method: "GET",
        url: "/pod/v1/user/google_login",
    },
    // 第三方登录回调
    getGoogleLoginCallback: {
        method: "GET",
        url: "/pod/v1/user/google_callback",
    },
    // 注册
    postUserRegist: {
        method: "POST",
        url: "/pod/v1/user/regist",
    },
    // 登录
    postUserLogin: {
        method: "POST",
        url: "/pod/v1/user/login",
    },
    // 请求更改密码
    postForgetPass: {
        method: "POST",
        url: "/pod/v1/user/forget_pass",
    },
    // 更改密码
    putChangePass: {
        method: "PUT",
        url: "/pod/v1/user/change_pass",
    },
    //更改邮箱订阅项
    putEmailSubscribe: {
        method: "PUT",
        url: "/pod/v1/user/email_subscribe/",
    },
    //==================产品信息==================//

    // 获取商品列表
    Product: {
        getList: {
            //获取商品列表
            method: "GET",
            url: "/pod/v1/product/",
        },
        getDetail: {
            //获取商品详情
            method: "GET",
            url: "/pod/v1/product/",
        },
        // 获取sku清单
        getDetailInventory: {
            method: "GET",
            url: "/zx/v1/product/inventory/spu/",
        },
        getCollectList: {
            //获取收藏列表
            method: "GET",
            url: "/pod/v1/user/collect/product",
        },
        addCollectById: {
            //增加收藏
            method: "PUT",
            url: "/pod/v1/user/collect/product/",
        },
        delCollectById: {
            //取消收藏
            method: "DELETE",
            url: "/pod/v1/user/collect/product/",
        },
    },
    //获取分类列表
    getTypeList: {
        method: "GET",
        url: "/pod/v1/tool/classify",
    },
    //获取品牌列表
    getBrandList: {
        method: "GET",
        url: "/zx/v1/tool/brand",
    },
    //获取刺绣绣框数据
    getEmbOpt: {
        method: "GET",
        url: "/pod/v1/tool/emb_opt",
    },
    /**
     * 素材管理
     */
    //  获取文件夹列表及文件数量

    Material: {
        getMaterialFolder: {
            method: "GET",
            url: "/pod/v1/user/material/folder",
        },
        //  获取素材列表
        getUserMaterial: {
            method: "GET",
            url: "/pod/v1/user/material/",
        },
        // 新建文件夹，返回data为文件夹id
        postMaterialFolder: {
            method: "POST",
            url: "/pod/v1/user/material/folder",
        },
        // 上传素材图片
        postMaterialFile: {
            method: "POST",
            url: "/pod/v1/user/material/",
        },
        // 修改文件夹名称 :id 参数为文件夹id
        putMaterialFolder: {
            method: "PUT",
            url: "/pod/v1/user/material/folder/",
        },
        //删除文件夹
        delMaterialFolder: {
            method: "DELETE",
            url: "/pod/v1/user/material/folder/",
        },
        // 修改素材名称，id为图片素材的id
        putMaterialFile: {
            method: "PUT",
            url: "/pod/v1/user/material/name/",
        },
        // 素材移入文件夹
        putMaterialFileToFolder: {
            method: "PUT",
            url: "/pod/v1/user/material/move",
        },
        // 删除素材
        delMaterial: {
            method: "DELETE",
            url: "/pod/v1/user/material/",
        },
        // 获取最近使用素材
        getMaterialRecently: {
            method: "GET",
            url: "/pod/v1/user/material/last/5",
        },

        // 设置最近使用素材
        setMaterialRecently: {
            method: "PUT",
            url: "/pod/v1/user/material/last_time/",
        },

        // 获取官方素材
        getOfficial: {
            method: "GET",
            url: "/zx/v1/material/list",
        },

        // 上传图片关联用户
        setMaterialBind: {
            method: "POST",
            url: "/pod/v1/user/material/info",
        },

        // 添加刺绣绑定
        addEmbBind: {
            method: "POST",
            url: "/pod/v1/user/emb/",
        },
        //  获取刺绣素材列表
        getEmbList: {
            method: "GET",
            url: "/pod/v1/user/emb/list",
        },

        //  获取刺绣素材详情
        getEmbDetail: {
            method: "GET",
            url: "/pod/v1/user/emb/detail/",
        },
        //  删除刺绣素材
        delEmbBind: {
            method: "DELETE",
            url: "/pod/v1/user/emb/",
        },
        //  修改刺绣素材信息
        setEmbDetail: {
            method: "PUT",
            url: "/pod/v1/user/emb/",
        },
        // 添加使用记录
        addEmbUploadUsed: {
            method: "PUT",
            url: "/pod/v1/user/emb/last_time",
        },
        // 获取最近使用记录
        getEmbUploadUsed: {
            method: "GET",
            url: "/pod/v1/user/emb/last/",
        },
        // 添加使用记录
        addEmbTextUsed: {
            method: "PUT",
            url: "/pod/v1/user/emb/font",
        },
        // 获取最近使用记录
        getEmbTextUsed: {
            method: "GET",
            url: "/pod/v1/user/emb/font/last",
        },
        // 批量添加版带
        addBatchBinding: {
            method: "POST",
            url: "/pod/v1/user/emb/bind/batch",
        },

        // 批量修改版带
        setBatchUpdate: {
            method: "POST",
            url: "/pod/v1/user/emb/bind/update",
        },
    },

    //==================用户地址管理==================//
    //获取用户地址
    address: {
        search: {
            method: "GET",
            url: "/pod/v1/user/address",
        },
        //新增用户地址
        insert: {
            method: "POST",
            url: "/pod/v1/user/address",
        },
        //删除用户地址
        remove: {
            method: "DELETE",
            url: "/pod/v1/user/address/",
        },
        update: {
            method: "PUT",
            url: "/pod/v1/user/address/",
        },
        // 账单地址
        getBilling: {
            method: "GET",
            url: "/pod/v1/order/payoneer/billing",
        },
        removeBilling: {
            method: "DELETE",
            url: "/pod/v1/order/payoneer/billing",
        },
    },
    /**
     * 商店模板
     */
    storeTemplate: {
        getList: {
            method: "GET",
            url: "/pod/v1/product/design/list",
        },
        putName: {
            method: "PUT",
            url: "/pod/v1/product/design/name/",
        },
        postCopy: {
            method: "POST",
            url: "/pod/v1/product/design/copy/",
        },
        // 获取详情
        getDetailInfo: {
            method: "GET",
            url: "/pod/v1/product/design/info/",
        },

        // 获取设计的模板详情
        getTemplate: {
            method: "GET",
            url: "/pod/v1/product/design/template/",
        },
        // 保存设计的模板
        putTemplate: {
            method: "PUT",
            url: "/pod/v1/product/design/template/",
        },

        // 是否可编辑
        getEditable: {
            method: "GET",
            url: "/pod/v1/product/design/order/",
        },
        // 删除
        remove: {
            method: "DELETE",
            url: "/pod/v1/product/design/template/",
        },

        // 用户模板包含的商品款式
        getTemplateProduct: {
            method: "GET",
            url: "/pod/v1/product/design/product/list",
        },
    },
    //==================用户商店==================//
    UserStore: {
        // 判断商店商品是否可以删除
        checkDeleteByProduct: {
            method: "GET",
            url: "/pod/v1/shop/order/product/",
        },
        //删除商品
        deleteProduct: {
            method: "DELETE",
            url: "/pod/v1/shop/product/",
        },

        // 关联店铺
        getLinkStore: {
            method: "GET",
            url: "/pod/v1/shop/connect/",
        },
        // 获取全部关联店铺
        getAllLinkStore: {
            method: "GET",
            url: "/pod/v1/shop/list",
        },
        // 添加草稿
        setGoodPublish: {
            method: "POST",
            url: "/pod/v1/shop/product_design",
        },

        // 更新草稿
        putGoodPublish: {
            method: "PUT",
            url: "/pod/v1/shop/product_design",
        },
        // 同步商品到第三方平台
        syncProduct: {
            method: "PUT",
            url: "/pod/v1/shop/product_sync/",
        },

        // 添加草稿(套装)
        setGoodPublishDraft: {
            method: "POST",
            url: "/pod/v1/shop/product_design_draft",
        },
        // 更新草稿(套装)
        putGoodPublishDraft: {
            method: "PUT",
            url: "/pod/v1/shop/product_design_draft",
        },
        // 获取商店商品详情(套装)
        getProductInfoDraft: {
            method: "GET",
            url: "/pod/v1/shop/product/list_suit/",
        },

        // 获取商店商品列表(套装)
        getShopProductListSuit: {
            method: "GET",
            url: "/pod/v1/shop/product/list_suit/",
        },

        // 获取商店商品详情(套装)
        getProductInfoSuit: {
            method: "GET",
            url: "/pod/v1/shop/product_suit/",
        },

        // 获取商店商品列表
        getShopProductList: {
            method: "GET",
            url: "/pod/v1/shop/product/list/",
        },
        // 获取商店商品详情
        getProductInfo: {
            method: "GET",
            url: "/pod/v1/shop/product/",
        },
        putProductStatus: {
            method: "PUT",
            url: "/pod/v1/shop/product/",
        },
        // 获取商店商品详情
        getProductStatus: {
            method: "POST",
            url: "/pod/v1/shop/product/shop_product_sync_status",
        },

        //显示商品在店铺
        getInStoreUrl: {
            method: "GET",
            url: "/pod/v1/shop/product/view_in_store",
        },
        //获取第三方店铺的分类
        getCollection: {
            method: "GET",
            url: "/pod/v1/shop/product/product_collection",
        },

        // 获取etsy风格分类
        getEtsyTaxonomy: {
            method: "GET",
            url: "/pod/v1/shop/etsy/taxonomy",
        },

        // 获取etsy的物流模板
        getEtsyShippingProfile: {
            method: "GET",
            url: "/pod/v1/shop/etsy/shipping_profile",
        },

        // 获取物流模板详情
        getEtsyShippingDetail: {
            method: "GET",
            url: "/pod/v1/shop/etsy/shipping_details",
        },

        // 解除关联店铺
        delLinkStore: {
            method: "DELETE",
            url: "/pod/v1/shop/disconnect/",
        },

        // 获取商店设置
        getShopSetting: {
            method: "GET",
            url: "/pod/v1/shop/",
        },
        setShopSetting: {
            method: "PUT",
            url: "/pod/v1/shop/",
        },

        setWooSetting: {
            method: "PUT",
            url: "/pod/v1/shop/woo_setting/",
        },
    },
    //==================app商店相关==================//
    AppStore: {
        //获取店铺token
        getTokenByKey: {
            method: "GET",
            url: "/pod/v1/shop/token",
        },
        //shopify 更新绑定商店user id
        putAssociatedShop: {
            method: "PUT",
            url: "/pod/v1/shop/associated_shop_user_id",
        },

        // 获取跳转到绑定Etsy的链接地址
        getEtsyConnectUrl: {
            method: "GET",
            url: "/pod/v1/shop/etsy/connect",
        },

        // 绑定etsy商店
        bindEtsyShop: {
            method: "GET",
            url: "/pod/v1/shop/etsy/load_url",
        },
        // 获取SquareSpace的链接地址
        getSquareSpaceConnectUrl: {
            method: "GET",
            url: "/pod/v1/shop/squarespace/connect/new",
        },
        // 回调后拿到参数请求绑定
        getSquareSpaceConnectBind: {
            method: "GET",
            url: "/pod/v1/shop/squarespace/connect",
        },
        // 获取商店页面
        getSquareSpaceStorePage: {
            method: "GET",
            url: "/pod/v1/shop/squarespace/store_pages/",
        },

        //连接wix
        getWixConnectUrl: {
            method: "GET",
            url: "/pod/v1/shop/wix/connect",
        },
        //绑定wix
        putWixBind: {
            method: "PUT",
            url: "/pod/v1/shop/wix/associated_shop_user_id",
        },
        getWooBind: {
            method: "GET",
            url: "/pod/v1/shop/woo/connect",
        },
    },
    //==================订单模块==================//
    Order: {
        //通过Sku获取商品单价
        getPriceBySku: {
            method: "GET",
            url: "/pod/v1/order/sku/",
        },
        // 生成订单
        addOrder: {
            method: "POST",
            url: "/pod/v1/order/",
        },
        // 更改订单地址
        setOrderAddress: {
            method: "PUT",
            url: "/pod/v1/order/customer/country/",
        },
        // 获取订单详情
        getOrderDetail: {
            method: "GET",
            url: "/pod/v1/order/info/",
        },
        // 获取订单状态
        getOrderStatus: {
            method: "POST",
            url: "/pod/v1/order/state",
        },
        // 获取订单数量
        getOrderCount: {
            method: "GET",
            url: "/pod/v1/order/count",
        },

        // 获取订单列表
        getOrderList: {
            method: "GET",
            url: "/pod/v1/order/list",
        },
        // 支付定单
        payOrder: {
            method: "POST",
            url: "/pod/v1/order/pay/",
        },

        // 钱海支付时检查库存
        checkStocksByCard: {
            method: "POST",
            url: "/pod/v1/order/pay/verify/",
        },

        // 批量支付预处理
        batchPayCheck: {
            method: "POST",
            url: "/pod/v1/order/pre_batch_pay",
        },

        // P卡支付获取支付签权
        payoneerPaySign: {
            method: "POST",
            url: "/pod/v1/order/payoneer/lists",
        },

        //批量支付
        batchPayOrder: {
            method: "POST",
            url: "/pod/v1/order/batch_pay",
        },
        // 批量支付状态查询
        batchPayStatus: {
            method: "POST",
            url: "/pod/v1/order/batch_pay_state",
        },
        //取消订单
        putCancelOrder: {
            method: "PUT",
            url: "/pod/v1/order/cancel/",
        },
        //退款订单
        putRefundOrder: {
            method: "PUT",
            url: "/pod/v1/order/refund/",
        },
        // 获取物流信息
        getLogisticsInfo: {
            method: "GET",
            url: "/pod/v1/order/logistics",
        },
        // 获取物流计算器页面数据
        getShippingInfo: {
            method: "GET",
            url: "/pod/v1/order/logistics_next",
        },
        // 获取物流计算器页面数据
        getShippingRemoteList: {
            method: "GET",
            url: "/pod/v1/order/logistics/remote",
        },

        // 忽略子项商品
        setIgnore: {
            method: "PUT",
            url: "/pod/v1/order/item/",
        },

        // 获取订单子项
        getDesignItem: {
            method: "GET",
            url: "/pod/v1/order/item/design/",
        },
        // 修改订单子项
        setDesignItem: {
            method: "PUT",
            url: "/pod/v1/order/item/design/",
        },

        // 银行卡支付签名
        getCardSign: {
            method: "POST",
            url: "/pod/v1/order/pay/credit_card/signature",
        },
        // 检查支付状态
        setCardCheckout: {
            method: "PUT",
            url: "/pod/v1/order/pay/credit_card/checkout",
        },
        // 获取充值状态
        getCardRechargeState: {
            method: "GET",
            url: "/pod/v1/order/pay/credit_card/recharge_state/",
        },
        // 获取一小时内订单支付数量
        getPaySuccessCount: {
            method: "GET",
            url: "/pod/v1/order/pay/count",
        },
        setPayoneerBilling: {
            method: "PUT",
            url: "/pod/v1/order/payoneer/billing/",
        },
    },
    Wallet: {
        // 获取余额
        getBalance: {
            method: "GET",
            url: "/pod/v1/user/wallet/balance",
        },
        getWalletLog: {
            method: "GET",
            url: "/pod/v1/user/wallet/log",
        },
        getTradeLog: {
            method: "GET",
            url: "/pod/v1/user/trade/log",
        },
        // 钱包充值
        putRecharge: {
            method: "PUT",
            url: "/pod/v1/user/wallet/",
        },
        // 钱包充值状态
        getRechargeState: {
            method: "GET",
            url: "/pod/v1/user/wallet/recharge_state",
        },

        // 充值提示
        getRechargeNotify: {
            method: "GET",
            url: "/pod/v1/user/recharge/rich_text",
        },
        // 获取配置
        getConfig: {
            method: "GET",
            url: "/pod/v1/user/wallet/user_area",
        },
        // 申请开通钱包功能
        setApply: {
            method: "POST",
            url: "/pod/v1/user/wallet/apply",
        },
        // 修改联系方式
        setContact: {
            method: "PUT",
            url: "/pod/v1/user/wallet/contact",
        },
        // 获取银行卡列表
        getBankArea: {
            method: "GET",
            url: "/pod/v1/user/wallet/bank_area",
        },
        // xt充值
        putTxRecharge: {
            method: "PUT",
            url: "/pod/v1/user/wallet/recharge",
        },

        // 获取充值记录
        getRechargeRecords: {
            method: "GET",
            url: "/pod/v1/user/wallet/recharge/list",
        },

        // 获取转账详情
        getRechargeDetail: {
            method: "GET",
            url: "/pod/v1/user/wallet/recharge/",
        },

        // 修改持卡人信息
        setRechargeUser: {
            method: "PUT",
            url: "/pod/v1/user/wallet/cardholder",
        },
    },

    // 优惠券
    Discount: {
        // 获取余额
        getDiscount: {
            method: "GET",
            url: "/pod/v1/user/discount/",
        },
    },

    // 设计器
    Designer: {
        // 设计信息
        getInfo: {
            method: "GET",
            url: "/pod/v1/product/design/",
        },
        // 保存设计
        saveDraft: {
            method: "POST",
            url: "/pod/v1/product/design/",
        },
        // 保存用户设计的图片
        uploadFile: {
            method: "POST",
            url: "/zx/v1/product/design/image/",
        },
    },

    // 品牌领标
    BrandLabel: {
        search: {
            method: "GET",
            url: "/pod/v1/user/brand_label/",
        },
        insert: {
            method: "POST",
            url: "/pod/v1/user/brand_label/",
        },
        update: {
            method: "PUT",
            url: "/pod/v1/user/brand_label/",
        },
        remove: {
            method: "DELETE",
            url: "/pod/v1/user/brand_label/",
        },
    },

    // 吊牌
    BrandHangtag: {
        search: {
            method: "GET",
            url: "/pod/v1/user/tag_design/list",
        },
        insert: {
            method: "POST",
            url: "/pod/v1/user/tag_design/",
        },
        detail: {
            method: "GET",
            url: "/pod/v1/user/tag_design/",
        },
        update: {
            method: "PUT",
            url: "/pod/v1/user/tag_design/",
        },
        remove: {
            method: "DELETE",
            url: "/pod/v1/user/tag_design/",
        },
        shape: {
            method: "GET",
            url: "/pod/v1/user/tag_design/hang_tag/list",
        },
        bindStore: {
            method: "PUT",
            url: "/pod/v1/user/tag_design/shop/bind",
        },
        untieStore: {
            method: "PUT",
            url: "/pod/v1/user/tag_design/shop/untie",
        },
        bindProduct: {
            method: "PUT",
            url: "/pod/v1/user/tag_design/product/bind",
        },
        untieProduct: {
            method: "PUT",
            url: "/pod/v1/user/tag_design/product/untie",
        },

        rename: {
            method: "PUT",
            url: "/pod/v1/user/tag_design/name/",
        },
    },

    // 包装袋
    BrandPackage: {
        search: {
            method: "GET",
            url: "/pod/v1/user/pack_design/list",
        },
        insert: {
            method: "POST",
            url: "/pod/v1/user/pack_design/",
        },
        detail: {
            method: "GET",
            url: "/pod/v1/user/pack_design/",
        },
        update: {
            method: "PUT",
            url: "/pod/v1/user/pack_design/",
        },
        remove: {
            method: "DELETE",
            url: "/pod/v1/user/pack_design/",
        },
        shape: {
            method: "GET",
            url: "/pod/v1/user/pack_design/hang_tag/list",
        },
        bindStore: {
            method: "PUT",
            url: "/pod/v1/user/pack_design/shop/bind",
        },
        untieStore: {
            method: "PUT",
            url: "/pod/v1/user/pack_design/shop/untie",
        },
        bindProduct: {
            method: "PUT",
            url: "/pod/v1/user/pack_design/product/bind",
        },
        untieProduct: {
            method: "PUT",
            url: "/pod/v1/user/pack_design/product/untie",
        },

        rename: {
            method: "PUT",
            url: "/pod/v1/user/pack_design/name/",
        },
    },

    //==================帮助中心==================//
    Help: {
        getList: {
            method: "GET",
            url: "/pod/v1/help/list",
        },
        getDetail: {
            method: "GET",
            url: "/pod/v1/help/",
        },
    },
    // 上传到阿里云
    ossUpload: {
        method: "GET",
        url: "/pod/v1/sts/token",
    },

    // node 相关
    Drawer: {
        // 打印大图
        printImage: {
            method: "POST",
            url: "/drawer/getPricePrintImage",
            // url: "http://47.253.69.73:8000/getPricePrintImage",
        },
        // 批量保存
        batchDraw: {
            method: "POST",
            url: "/drawer/batchDrawDesignImage",
            // url: "http://47.253.69.73:8000/batchDrawDesignImage",
        },
        // 生成缩略图
        createThumb: {
            method: "GET",
            url: "/drawer/createThumbByFullname",
            // url: "http://47.253.69.73:8000/createThumbByFullname",
        },
        // 生成模特图
        batchDrawModelBackground: {
            method: "POST",
            url: "/drawer/batchDrawModelBackground",
            // url: "http://47.253.69.73:8000/batchDrawModelBackground",
        },
        // 生成模特图
        createEmbroideryText: {
            method: "GET",
            url: "/drawer/createEmbroideryText",
        },
        // 生成模特图
        test: {
            method: "GET",
            url: "/drawer/ping",
            // url: "http://47.253.69.73:8000/batchDrawModelBackground",
        },
    },

    // 资源
    Resource: {
        countris: {
            method: "GET",
            url: "/data/zx/file/countris-states.json",
        },
        // 获取汇率
        getCurrency: {
            method: "GET",
            url: "/pod/v1/tool/rates/",
        },
    },
};

export default Api;
